package com.sunny.blog.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @ClassName: FileService
 * @Description: 文件操作接口服务
 * @Author: sunt
 * @Date: 2020/4/17 15:37
 * @Version 1.0
 **/
public interface FileService {


    /**
     * FastDFS文件上传
     * @param file
     * @return
     */
    String uploadFdfsFile(MultipartFile file) throws IOException;

    /**
     * 文件下载
     * @param fileUrl
     * @param response
     */
    void downloadFile(String fileUrl, HttpServletResponse response);
}
